<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
Route::domain('api.'.Env::get('domain'), 'api');
Route::domain('192.168.0.224', 'api');
Route::domain('www.'.Env::get('domain'), 'www');
Route::domain('admin.'.Env::get('domain'), 'admin');
Route::domain(['api','www','admin'], function () {
    Route::rule('captcha/[:id]', "\\think\\captcha\\CaptchaController@index");
});
